package h0729;

import java.util.Scanner;

/**
 * @author 不知名帅哥
 * @version 1.0
 * @description 找到相同子串
 * @date 2024/7/29 19:18
 */
public class FindSameSubString {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        String subStr = sc.nextLine();
        String res = getRes(s, subStr);
        System.out.println(res);
    }

    private static String getRes(String s, String subStr) {
        int index = s.indexOf(subStr);
        if (index < 0) {
            return "No";
        } else return index + 1 + "";
    }
}
